unit UViewerTest;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, uDispViewer;

type
  TForm1 = class(TForm)
    Button1: TButton;
    procedure Button1Click(Sender: TObject);
  private
    { Private declarations }
    fViewer:TfViewerForm;
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
begin
    fViewer:=TfViewerForm.Create(Self);
    fViewer.Parent:=Self As TWinControl;
//    fViewers[h].FormStyle:=fsMDIChild;
    fViewer.Top:=0;
    fViewer.Left:=0;
    fViewer.Width:=295;
    fViewer.Left:=154;
    fViewer.Visible:=True;
    fViewer.AutoSize:=True;

//------------------------------------------------------------------------------
    fViewer.WorkSlotID:=4;//fWorkSlotID;
    fViewer.WorkServer:='';//fWorkserver;
    fViewer.WorkLogin:='';//fWorkLogin;
    fViewer.WorkPassWord:='';//fWorkPassword;

    fViewer.HedjSlotID:=3;//fHedjSlotID;
    fViewer.HedjServer:='';//fHedjserver;
    fViewer.HedjLogin:='';//fHedjLogin;
    fViewer.HedjPassWord:='';//fHedjPassword;

//------------------------------------------------------------------------------
{
    fViewer.Settings.Assign(fBotParams);
    fViewer.OnClose:=CloseViewer;
    fViewer.ID:=h;
}
end;

end.
